]> dgit.raspbian.org Git - gnome-shell.git/commit
appDisplay: Take the viewBox into account for the contentBox of folders
authorJonas Dreßler <verdre@v0yd.nl>
Mon, 17 Feb 2020 13:12:47 +0000 (14:12 +0100)
committerFlorian Müllner <florian.muellner@gmail.com>
Sun, 8 Mar 2020 00:42:40 +0000 (00:42 +0000)
commit1ec511771554a28b798fc0305a889c49292fdcbe
tree7a74b3dd10036369171cb354f8c8fae8f17e1e51
parentbf367daabac40d7f76475a7a41f99f00f4600934
appDisplay: Take the viewBox into account for the contentBox of folders

The viewBox has a border applied, so when we call adaptToSize using only
the content box of the container, the width of the border is not removed
from the content box and the grid will be allocated less space than what
we told it before using adaptToSize.

Fix that by adjusting the content box for the size of the viewBox, too.
This makes sure the correct amount of columns can be shown inside a
folder, since right now we only show 3 colums even though 4 would fit.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/1011
js/ui/appDisplay.js